package com.ifinc.common.socket.demo;

import com.ifinc.common.socket.server.MessageFactory;
import com.ifinc.common.socket.server.MessageHandler;
import com.ifinc.common.socket.server.NettyServer;

/**
 * User: luotao
 * Date: 13-11-26
 * Time: 12:54
 */
public class NettyServerDemo {
    public static void main(String[] args) throws Exception {
        NettyServer nettyServer = new NettyServer();
        MessageHandler messageHandler = new MessageHandler();
        MessageFactory messageFactory = new MessageFactory();
        messageFactory.setMessageHandler(messageHandler);
        nettyServer.setMessageFactory(messageFactory);
    }
}
